package vip.sweet.biz.modular.cultural.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.Date;

/**
 * @author ASUS
 * @Date 2025/10/4 17:58
 * @Descripition
 */
@Schema(description = "业务逻辑文化内容实体类")
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("biz_cultural_contents")
public class BizCulturalContent {
    @Schema(description = "内容ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @Schema(description = "内容类型")
    private String type;
    @Schema(description = "内容标题")
    private String title;
    @Schema(description = "内容描述")
    private String description;
    @Schema(description = "内容封面图")
    private String coverUrl;
    @Schema(description = "内容访问量")
    private Integer viewCount;
    @Schema(description = "内容点赞数")
    private Integer likeCount;
    @Schema(description = "内容发布时间")
    private Date publishDate;
    @Schema(description = "内容是否精选")
    private Integer featured;
    @Schema(description = "内容创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description = "内容更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
